package com.shimao.celnet.payment.model.request;

import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

/**
 * 对应接口：pay-140-外部付款申请<outPayReqIn>
 * 请求json对象
 * Created by ensure.xu on 2017/12/10.
 */
public class CallIn_OutPayReqInRequest {


    private String estateId;// 小区的SFID
    private String estateName;// 小区名称
    private String houseId;// 房源的SFID
    private String houseName;// 房源名称
    //@NotBlank(message = "用户名【userId】")
    private String userId;// 用户的SFID
    private String meruserid;// 用户的SFID
    @NotBlank(message = "用户名【userName】")
    private String userName;// 用户名称
    @NotBlank(message = "支付业务类型【pOrderType】")
    private String pOrderType;// "支付业务类型:
    private String pType;// 缴费方式（选项：A01支付宝，A02微信，A03银联)
    @NotBlank(message = "缴费金额【pMoney】")
    private String pMoney;// 缴费金额
    //@NotBlank(message = "返回app页面的【goBackUrl】")
    private String goBackUrl;// 支付成功结果通知-返回app页面的url
    //@NotBlank(message = "返回app页面的【pAppType】")
    private String pAppType;// 商户app类型(IOS/Android/Wap)
   // @NotBlank(message = "返回app页面的【pAppName】")
    private String pAppName;// 商户app名称(app名称或者网站名称
   // @NotBlank(message = "返回app页面的【pAppPackage】")
    private String pAppPackage;// 商户app包名
   // @NotBlank(message = "返回app页面的【pCusip】")
    private String pCusip;// 终端ip(用户下单和调起支付的终端ip地址)
   // @NotBlank(message = "返回app页面的【pRandomstr】")
    private String pRandomstr;// 随机字符串(商户自行生成的随机字符串
    @NotBlank(message = "缴费说明【pRemark】")
    private String pRemark;// 缴费说明
    private List<Payment> paymentList;// 付款账单列表

    //---------------------退款接口----------------agreeid
    private String paymentId;
    private String refundAmount;
    private String refundFlg;
    private String notifyUrl;
    //---------------------银联支付----------------
    private String agreeid;  //协议编码 用于银联支付
    private String orderid; //订单号
    //---------------------小程序----------------
    private String acct;  //   微信小程序-小程序的openid（小程序支付必填）
    private String sub_appid; //  微信小程序的appid（小程序支付必填）

    public String getAcct() {
        return acct;
    }

    public void setAcct(String acct) {
        this.acct = acct;
    }

    public String getSub_appid() {
        return sub_appid;
    }

    public void setSub_appid(String sub_appid) {
        this.sub_appid = sub_appid;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getAgreeid() {
        return agreeid;
    }

    public void setAgreeid(String agreeid) {
        this.agreeid = agreeid;
    }

    public String getMeruserid() {
        return meruserid;
    }
    public void setMeruserid(String meruserid) {
        this.meruserid = meruserid;
    }
    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getRefundFlg() {
        return refundFlg;
    }

    public void setRefundFlg(String refundFlg) {
        this.refundFlg = refundFlg;
    }

    public String getpAppType() {
        return pAppType;
    }

    public void setpAppType(String pAppType) {
        this.pAppType = pAppType;
    }

    public String getpAppName() {
        return pAppName;
    }

    public void setpAppName(String pAppName) {
        this.pAppName = pAppName;
    }

    public String getpAppPackage() {
        return pAppPackage;
    }

    public void setpAppPackage(String pAppPackage) {
        this.pAppPackage = pAppPackage;
    }

    public String getpCusip() {
        return pCusip;
    }

    public void setpCusip(String pCusip) {
        this.pCusip = pCusip;
    }

    public String getpRandomstr() {
        return pRandomstr;
    }

    public void setpRandomstr(String pRandomstr) {
        this.pRandomstr = pRandomstr;
    }

    public void setGoBackUrl(String goBackUrl) {
        this.goBackUrl = goBackUrl;
    }

    public String getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(String paymentId) {
        this.paymentId = paymentId;
    }

    public String getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(String refundAmount) {
        this.refundAmount = refundAmount;
    }

    public String getGoBackUrl() {
        return goBackUrl;
    }

    public void setGoBackUr(String goBackUrl) {
        this.goBackUrl = goBackUrl;
    }

    public String getEstateId() {
        return estateId;
    }

    public void setEstateId(String estateId) {
        this.estateId = estateId;
    }

    public String getEstateName() {
        return estateName;
    }

    public void setEstateName(String estateName) {
        this.estateName = estateName;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getpOrderType() {
        return pOrderType;
    }

    public void setpOrderType(String pOrderType) {
        this.pOrderType = pOrderType;
    }

    public String getpType() {
        return pType;
    }

    public void setpType(String pType) {
        this.pType = pType;
    }

    public String getpMoney() {
        return pMoney;
    }

    public void setpMoney(String pMoney) {
        this.pMoney = pMoney;
    }


    public String getpRemark() {
        return pRemark;
    }

    public void setpRemark(String pRemark) {
        this.pRemark = pRemark;
    }

    public List<Payment> getPaymentList() {
        return paymentList;
    }

    public void setPaymentList(List<Payment> paymentList) {
        this.paymentList = paymentList;
    }

    @Override
    public String toString() {
        return "data{" +
                "estateId='" + estateId + '\'' +
                ", estateName='" + estateName + '\'' +
                ", houseId='" + houseId + '\'' +
                ", houseName='" + houseName + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", pOrderType='" + pOrderType + '\'' +
                ", pType='" + pType + '\'' +
                ", pMoney='" + pMoney + '\'' +
                ", pRemark='" + pRemark + '\'' +
                ", paymentList=" + paymentList +
                '}';
    }
}
